package com.cuit.mock;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class MockServiceManager {

    private final Map<String, Object> map = new ConcurrentHashMap<>();

    public void putMockService(String service, Object bean){
        map.put(service, bean);
    }

    public Object getMockService(String service){
        return map.getOrDefault(service, null);
    }
}
